
<?php
$error_level = error_reporting(); 
error_reporting(0);
$property = '../properties/rss_feeds.xml';

$array_fuentes = simplexml_load_file($property);


foreach ($array_fuentes as $fuente){
		$rss = $fuente->rss_remote;
		$rss_local_target = $fuente->rss_local;
		$feed = file_get_contents($rss);
		if ($feed === FALSE){
		
		}
		else{
			file_put_contents($rss_local_target, $feed);
		}
	}
	
error_reporting($error_level);
?>
